package com.snow.useviewdemo.function2.hindicon;

import android.app.Activity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.Window;
import android.view.WindowManager;

import com.snow.useviewdemo.util.LogUtils;


/**
 * 隐藏appicon后，点击透明icon跳转页面
 */
public class OpenHighActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //1px设置窗口位置在左上角
        Window window = getWindow();
        LogUtils.e("OpenHighActivity>>","===OpenHighActivity==onCreate=");
        window.setGravity(Gravity.LEFT | Gravity.TOP);
        WindowManager.LayoutParams params = window.getAttributes();
        params.x = 0;
        params.y = 0;
        params.width = 1;
        params.height = 1;
        window.setAttributes(params);
        finish();
    }
}